package com.provider.provider.rabitmq;

import apiService.DemoService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * Created by chao on 2019/3/1.
 */
@CrossOrigin
@RestController
@RequestMapping(value = "/api")
public class test {

    @Resource
    MsgProducer msgProducer;
    @RequestMapping(value = "form/{id}",method = RequestMethod.GET)
    public void form(@PathVariable("id") String id) throws Exception {
        boolean flag = false;
        msgProducer.sendMsg("hello mq5");
        Object retObject = "操作失败";


    }
}
